#ifndef SOCKETVIEWER_H
#define SOCKETVIEWER_H

#include <QObject>
#include <QTcpSocket>

class SocketViewer : public QObject
{
    Q_OBJECT
public:
    explicit SocketViewer(const QString _hostName, const quint16 _port, QObject *parent = nullptr);

signals:

public slots:

private slots:
    void connected();
    void readyRead();
    void error(QAbstractSocket::SocketError socketError);

private:
    QTcpSocket *socket;

};

#endif // SOCKETVIEWER_H
